Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable specifying prefixed zone names in DNSRecord spec.zone #350

Merged
merged 1 commit into from
Nov 16, 2021

Conversation

stoyanr
Copy link
Contributor

@stoyanr stoyanr commented Nov 12, 2021

How to categorize this PR?

/area control-plane
/kind enhancement
/platform gcp

What this PR does / why we need it:
Enables specifying a zone name prefixed with the project id, in addition to an unprefixed zone name, in the spec.zone field of a DNSRecord resource. This is needed to ensure that explicitly configured zones in landscapes and shoot spec.dns.providers configurations work for both the DNSRecord controller and external-dns-management, which always uses prefixed zone names on GCP.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

  • In order to avoid "overlapping zones" errors from external-dns-management, it is important to be able to configure zones explicitly in a way that works for both external-dns-management and the DNSRecord controller. Since the handling of zones in external-dns-management is harder to change, this PR proposes adapting the DNSRecord controller to the zone identification used by external-dns-management.

Release note:

It is now possible to specify a zone name prefixed with the project id, in addition to an unprefixed zone name, in the `spec.zone` field of a `DNSRecord` resource.

@stoyanr stoyanr requested review from a team as code owners November 12, 2021 09:51
@gardener-robot gardener-robot added area/control-plane Control plane related kind/enhancement Enhancement, improvement, extension platform/gcp Google cloud platform/infrastructure needs/review Needs review size/s Size of pull request is small (see gardener-robot robot/bots/size.py) labels Nov 12, 2021
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Nov 12, 2021
@stoyanr
Copy link
Contributor Author

stoyanr commented Nov 12, 2021

/invite @MartinWeindel @plkokanov

@stoyanr stoyanr changed the title Enable specifying prefixed zone names in DNSRecord spec.zone Enable specifying prefixed zone names in DNSRecord spec.zone Nov 12, 2021
MartinWeindel
MartinWeindel previously approved these changes Nov 12, 2021
Copy link
Member

@MartinWeindel MartinWeindel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@gardener-robot gardener-robot added reviewed/lgtm Has approval for merging and removed needs/review Needs review labels Nov 12, 2021
@stoyanr stoyanr added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Nov 12, 2021
@gardener-robot gardener-robot added needs/review Needs review and removed needs/review Needs review labels Nov 12, 2021
@gardener-robot-ci-3 gardener-robot-ci-3 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Nov 12, 2021
Copy link
Member

@dkistner dkistner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@stoyanr stoyanr merged commit bacb347 into gardener:master Nov 16, 2021
@stoyanr stoyanr deleted the fix-dnsrecord-zone-format branch November 16, 2021 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/control-plane Control plane related kind/enhancement Enhancement, improvement, extension needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) platform/gcp Google cloud platform/infrastructure reviewed/lgtm Has approval for merging size/s Size of pull request is small (see gardener-robot robot/bots/size.py)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants